<template>
  <div id="app">
    <p @click="$store.commit('add')">counter: {{$store.state.counter}}</p>
    <p @click="$store.dispatch('add')">counter: {{$store.state.counter}}</p>
    <p>Getters demo: {{$store.getters.doubleCounter}}</p>
    <span>暗号： 天王盖地虎 </span>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {
  },
  methods:{

  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
